def func (val) :
	if delta < 0:
		print ("Equation has no real roots")
	else :
		if delta == 0 :
			x = -b / (2 * a) 
			print ("There is a double root at", x)
		else :
			#计算两个实数根